package com.example.bankmanage.entity;

import com.example.bankmanage.constant.StatusAccounts;
import lombok.Data;

import java.util.Date;

@SuppressWarnings("all")
@Data
/**
 * 账户表
 */
public class accounts {
    private Integer accountId;//账户id
    private int userId;//用户id
    private String accountNumber;//账户号
    private StatusAccounts accountType; //账户类型//ENUM('SAVINGS', 'CHECKING', 'CREDIT', 'LOAN') NOT NULL,
    private double balance;//余额
    private String currency;//货币
    private Date openingDate;//打开日期
    private StatusAccounts status; //ENUM('ACTIVE', 'DORMANT', 'CLOSED', 'FROZEN') DEFAULT 'ACTIVE',
    private double interestRate;
    private double creditLimit; //仅对信用卡账户有效
}
